package cn.shadow.produce.purchase.infrastructure.producer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.function.StreamBridge;
import org.springframework.stereotype.Component;

@Component
public class TXProducer {
    @Autowired
    private StreamBridge streamBridge;

    private static final String TX_PRODUCER = "producer-out-0";

    public void productTxMessage(String message) {

        streamBridge.send(TX_PRODUCER, message);
    }

}
